package books.ThinkingInJava.src.Chapter5;

public class TestEnum {

    public static void main(String[] args) {
        TestEnum te = new TestEnum();
//        System.out.println(te);
        for (X x : X.values()) {
//            System.out.println(x);
            switch (x) {
                case MAX:
                    System.out.println("MAX1");
                    break;
                case ENUM:
                    System.out.println("ENUM1");
                    break;
                case TEST:
                    System.out.println("TEST1");
                    break;
            }

        }

    }

    public enum X {MAX, ENUM, TEST}
}
